package com.jumi.microservice.constant.compensation;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author scw
 * @date 2020/08/29 10:33
 */

public enum AfterSaleStatusEnum implements AbstractEnum<Integer> {
    /**
     * 售后状态
     */
    NORMAL(0, ""),
    REFUND(1, "已退款"),
    REFUND_GOODS_APPLY(2, "退货审核中"),
    REFUND_GOODS_AGREE(3, "已退货退款"),
    REFUND_GOODS_REFUSE(4, "退货退款拒绝"),
    REISSUE_APPLY(5, "补发审核中"),
    REISSUE_AGREE(6, "已补发"),
    REISSUE_REFUSE(7, "补发拒绝"),
    COMPENSATION_APPLY(8, "补偿审核中"),
    COMPENSATION_AGREE(9, "已补偿"),
    COMPENSATION_REFUSE(10, "补偿拒绝"),
    COMPENSATION_POSTAGE_APPLY(11, "补邮审核中"),
    COMPENSATION_POSTAGE_AGREE(12, "已补邮费"),
    COMPENSATION_POSTAGE_REFUSE(13, "补邮拒绝"),
    REPLACE_APPLY(14, "换货申请中"),
    REPLACE_AGREE(15, "换货同意"),
    REPLACE_REFUSE(16, "换货拒绝"),
    REISSUE_MISSED_APPLY(17, "补发漏发审核中"),
    REISSUE_MISSED_AGREE(18, "已补发漏发"),
    REISSUE_MISSED_REFUSE(19, "补发漏发拒绝");

    private Integer code;
    private String msg;


    AfterSaleStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }
}
